import { defineStore } from 'pinia';

export const useSubscribeStore = defineStore('subscribe', () => {
  // 单个项目详情
  const projectDetails = ref({});

  // 设置项目详情
  const setProjectDetails = (value) => {
    projectDetails.value = value;
  };

  // 用户选择场次信息
  const userBookingSiteBos = ref({});

  // 设置项目详情
  const setUserBookingSiteBos = (value) => {
    userBookingSiteBos.value = value;
  };

  // 车位信息数组
  const parkingSpaceInfo = ref([]);

  // 设置车位信息
  const setParkingSpaceInfo = (value) => {
    parkingSpaceInfo.value = value;
  };

  return {
    projectDetails,
    userBookingSiteBos,
    parkingSpaceInfo,
    setParkingSpaceInfo,
    setProjectDetails,
    setUserBookingSiteBos
  };
});
